// Lang_12 ['return' keyword].nova // The application class. class ReturnKeywordApp { // Application class's "main" function. public static void main( String[] args ) { // Create a new instance of an "A" class. A a = new A( ); // Output the return value from "method1" in the new "A" object. Stream.writeLine( a.method1( ) ); // Exit the application. return; Stream.writeLine( "This line of code should not execute." ); } } class A { // Class constructor. public A( ) { Stream.writeLine( "A.A( ) - Called." ); } public String method1( ) { // Return the return value of method2. return method2( ); Stream.writeLine( "This line of code should not execute." ); } public String method2( ) { // Return a string object. return "This is the string from method2."; Stream.writeLine( "This line of code should not execute." ); } }